package io.renren.modules.shop.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.modules.shop.entity.GoodsAndOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.shop.entity.GoodsMsg;

public interface GoodsAndOrderService extends IService<GoodsAndOrder> {


    List<GoodsAndOrder> getPage(GoodsAndOrder goodsAndOrder, Integer size, Integer page);

    boolean addCar(GoodsMsg goodsMsg, String openid,Integer num);

    boolean delCar(GoodsMsg goodsMsg, String openid,Integer num);

    void buyOne(GoodsMsg goodsMsg, String openId,  Integer num,Integer goodsCouponId);

    int updateBatchSelective(List<GoodsAndOrder> list);

    boolean cancelOrder(Integer goodsOrderId);
}







